import request from '../../utils/request';
import empinfoUrl from '../urls/empinfo'


//添加员工详细信息
export const addEmpDetailed = data => {
    return request({
        headers: {
            "Content-Type": "application/json"
        },
        url: empinfoUrl.addEmpInfoUrl,
        method: 'post',
        data: data
    });
};


//根据id获取员工信息表
export const fetchEmpInfo = data => {
    return request({
        url: empinfoUrl.fetchEmpInfoUrl,
        method: 'get',
        params: data
    });
};

//更新员工信息表
export const updateEmpInfo = data => {
    return request({
        headers: {
            "Content-Type": "application/json"
        },
        url: empinfoUrl.updateEmpInfoUrl,
        method: 'post',
        data: data
    });
};